<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="css/login.css"/>
		<script type="text/javascript">
			window.onload=function(){
				var div=document.querySelector(".title");
				var spans=div.children;//2
				for(var i=0;i<spans.length; i++){
					spans[i].onclick=function(){
						for (var j=0;j<spans.length;j++) {
							//
							if (spans[j]==this) {
								spans[j].className="active";
							}else{
								spans[j].className="";
							}
						}
					}
				}
			}
		</script>
	</head>
	<body>
		<div class="content">
			<div class="box">
				<div class="right">
					<div class="title">
						<span class="active">登录</span><span onclick="javascript:window.open('http://127.0.0.1:8020/yinyue/post.html?__hbt=1635941729932')">注册</span>
					</div>
					<div class="text">
						<div class="login">
							<form action="#" method="post">
								<input type="text" name="name" id="name" placeholder="账号"/>
								<br />
								<input type="text" name="paw" id="paw" placeholder="密码"/>
								<br />
								<input type="checkbox" name="chk" id="chk" value="" />
								<label for="chk">自动登录</label>
								<br />
								<input type="submit" value="登录"/>
							</form>
						</div>
						<div class="register"></div>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>
